> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-api_docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Stytch Configuration for Embedded Wallet

> Learn how to configure a Stytch client for your Embedded Wallet instance. Follow steps to create and retrieve a Public Token from the Stytch dashboard.

In order to have Stytch auth integrated into your Embedded Wallet instance, you have to configure a Stytch application in the [Stytch Dashboard](https://stytch.com/dashboard) and configure an Embedded Wallet in [Sequence Builder](https://sequence.build/). Begin, by starting with the following below steps:

<Warning>
  The Stytch authentication is currently in early access. To enable them, please visit [https://sequence.build/earlyaccess](https://sequence.build/earlyaccess) and turn on the functionality.
</Warning>

<Steps>
  <Step title="Sign Up / Sign In">
    First access the [sign in page](https://stytch.com/dashboard):
  </Step>

  <Step title="Create a Project">
    From the dropdown of projects once signed in, select `Create new project`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_create_new_project.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=3689b1182c6ab8cf8fce799fe60e1e98" alt="Create a Project" width="1556" height="677" data-path="images/builder/stytch_create_new_project.png" />
    </Frame>

    Then select `CONSUMER AUTHENTICATION`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_create_project.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=981b21609f550b6802e4774f53838122" alt="Create new Project" width="1556" height="677" data-path="images/builder/stytch_create_project.png" />
    </Frame>

    And finally select `Create project`
  </Step>

  <Step title="Obtain a Stytch Project ID & Stytch Public Token">
    From the bottom of the first screen of `Home` copy and save somewhere safe the `Stytch Project ID` & `Stych Public Token`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_obtain_keys.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=d96f92c260199640b99223f9d6740768" alt="Obtain a Project ID & Stytch Public Token" width="1398" height="659" data-path="images/builder/stytch_obtain_keys.png" />
    </Frame>
  </Step>

  <Step title="Update the Redirect URL">
    For local development use `http://localhost:4444/authenticate`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_create_new_redirect_uri.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=4a3f6bfc97be0182687df54d4a66dbf0" alt="Update Redirect Url" width="1616" height="763" data-path="images/builder/stytch_create_new_redirect_uri.png" />
    </Frame>

    Enable `Login` and `Register`, select `Set as default` and select `Confirm`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_create_new_redirect_uri_confirm.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=7ed6802480ba21c4b23efb8386c90766" alt="Obtain a Project ID" width="1536" height="705" data-path="images/builder/stytch_create_new_redirect_uri_confirm.png" />
    </Frame>
  </Step>

  <Step title="Update the Allowed Origins for SDK">
    For local development, ensure that your development URL is passed correclt such as `http://localhost:4444`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/2QWO9FH9MYcin5ZY/images/builder/stytch_add_url_to_sdk.png?fit=max&auto=format&n=2QWO9FH9MYcin5ZY&q=85&s=1ce39e551464ebd105281995a3d805b3" alt="Update url for SDK" width="1750" height="728" data-path="images/builder/stytch_add_url_to_sdk.png" />
    </Frame>
  </Step>

  <Step title="Builder Configuration">
    Next, enable Stytch authentication in the Sequence Builder by accessing your Project, the Embedded Wallet Configuration section, then adding a Login Provider:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/SNyh5SVl_Cl_WcC2/images/builder/builder_stytch_add_provider.png?fit=max&auto=format&n=SNyh5SVl_Cl_WcC2&q=85&s=70853aca1bb6c496edc279635ea9a12d" alt="add login provider" width="1880" height="722" data-path="images/builder/builder_stytch_add_provider.png" />
    </Frame>

    Finally, selecting `Stytch` in the dropdown.

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-api_docs/SNyh5SVl_Cl_WcC2/images/builder/builder_stytch_select_provider.png?fit=max&auto=format&n=SNyh5SVl_Cl_WcC2&q=85&s=3ee6b48c9dd3564f97acde0e7536fb56" alt="select stytch" width="2459" height="1106" data-path="images/builder/builder_stytch_select_provider.png" />
    </Frame>

    Then inputting your `Stytch Project ID`, selecting `Save changes` and selecting the purple `Update configuration` to input your password to update the Configuration.
  </Step>
</Steps>
